home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15323 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  955 b 

  1. Path: cs.tu-berlin.de!ulrich
  2. From: ulrich@cs.tu-berlin.de (Ulrich Wittenberg)
  3. Newsgroups: comp.lang.c
  4. Subject: May fprintf () be recursive?
  5. Date: 18 Apr 1996 14:15:30 GMT
  6. Organization: TU Berlin Fachbereich Informatik
  7. Message-ID: <4l5f9s$ad3@news.cs.tu-berlin.de>
  8. NNTP-Posting-Host: krypton.cs.tu-berlin.de
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-1
  11. Content-Transfer-Encoding: 8bit
  12.  
  13.  
  14. Hello,
  15.  
  16. My program developed a strange error in the dynamic memory management
  17. when it had a line of the following type in it:
  18.  
  19. fprintf (stderr, "fprintf returns %#X\n", fprintf (stderr, "TEST\n"));
  20.  
  21. So, my question is: Is it allowed for fprintf to be called
  22. recursively????
  23.  
  24. BTW: when I changed that line to an iterative way, the program worked
  25. fine
  26.  
  27. Suggestions?
  28.  
  29. Ulrich
  30. -- 
  31. Ulrich Wittenberg, c/o PRZ 
  32. 10587 Berlin, Germany, Europe, Terra, Sol System, Milky Way, Universe (Backyard)
  33. International Phone: xx49 30 314 25985 (Germany Berlin TU Office)
  34.